Dynomotion

Group: DynoMotion Message: 2247 From: himykabibble Date: 11/15/2011
Subject: What Is KMotionCNC Doing?
KMotionCNC has take a giant step backwards. Here's what I've just done:

Uninstalled KMotion
Deleted the KMotion Directory
Re-installed KMotion (I've tried both 426 and 428x with the same results)
Fire up KMotion and re-flash
Fire up KMotionCNC and do nothing more than click the "Simulate" checkbox - ALL the DROS start counting up!

The exact same thing happens when I connect the machine, and run my Init program. This problem did not exist a few days ago, but I have done everything I can to wipe all vestiges of previous installs off the machine, to no avail. It's not my Init code, because I never loaded it. It's not my machine, because it doesn't even need to be connected. Besides, it works fine under Mach3 with all the same hardware, and the other two motion controllers I have on-hand.

I now have the KFlop working pretty well with Mach3, except for a few minor issues I'm fairly sure will be easily resolved. Among them is my probing macros for the A axis do not work properly, though the same code works fine on the other three axes. On the A axis, simple G31s seem to always work properly, but when I use my probing macros (which have worked perfectly for dozens of people for years), the axis sometimes moves too far, sometimes even in the wrong direction, on some of the non-probing moves. I'm suspecting some confusion about coordinate systems, zeroes, or something similar, since the other axes work perfectly. I'm not too concerned, as that is easy enough to debug.

Regards,
Ray L.
Group: DynoMotion Message: 2248 From: Tom Kerekes Date: 11/15/2011
Subject: Re: What Is KMotionCNC Doing?
Hi Ray,
 
Very strange.  KMotion V4.26 seems to work fine for me and many users as well as yourself a couple days ago.  Something must have changed.  Your description is missing some steps and you are not being very specific.  For example:
 
#1 are you Flashing "New Version" ?
 
#2 are you cycling power on KFLOP after Flashing?
 
#3 are you restarting KMotion after Flashing?
 
#4 did you check the versions in KFLOP?  (Type Version on Console)
 
#5 did you check the version of KMotionCNC (right click title - About)
 
#6 when you run KMotionCNC is KMotion still running
 
#7 is the board connected when you run KMotionCNC?
 
#8  Has the board been initialized?
 
#9 what color are the DROs before clicking Simulate
 
#10 is Simulate initially checked or unchecked?
 
#11 what is the color of the DROs after clicking and while "counting"
 
#12 what if you don't have the USB connected?
 
Regards
TK
 

Group: DynoMotion Message: 2249 From: himykabibble Date: 11/15/2011
Subject: Re: What Is KMotionCNC Doing?
Tom,

See below. Keep in mind, this does not happen when I run KMotionCNC on my laptop, and it did not happen on the PC on the machine until a few days ago. I believe it occurred the first time when I installed v428x. Could there be something in the registry? Whatever it is, it has nothing to do with the specific KMotion version, nor does it appear to have anything to do with the board, since it happens in simulation mode when the board has not been initialized, or it isn't even connected.

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>  
> Very strange.  KMotion V4.26 seems to work fine for me and many users as well as yourself a couple days ago.  Something must have changed.  Your description is missing some steps and you are not being very specific.  For example:
>  
> #1 are you Flashing "New Version" ? - I am flashing the image from the current install, be it 426 or 428. I only ever have one version installed at any one time, and delete the whole directory on uninstall, so it is impossible for me to flash the wrong image.
>  
> #2 are you cycling power on KFLOP after Flashing? - Yes, always.
>  
> #3 are you restarting KMotion after Flashing? - Yes, always.
>  
> #4 did you check the versions in KFLOP?  (Type Version on Console) No, but, like I said, I completely delete the previous install each time, so I CAN'T be running the wrong version.
>  
> #5 did you check the version of KMotionCNC (right click title - About) See #4.
>  
> #6 when you run KMotionCNC is KMotion still running - Not sure what you mean here. I never run nore than one instance at a time. Are you asking if there's a zombie KMotionCNC instance running? I did not look for that, but I've done this countless times over the last two days, and this happens first time, every time.
>  
> #7 is the board connected when you run KMotionCNC? - I've tried it both ways. It makes no difference in the behavior.
>  
> #8  Has the board been initialized? - Result is the same whether the board has been init'd or not.
>  
> #9 what color are the DROs before clicking Simulate - Always White on startup.
>  
> #10 is Simulate initially checked or unchecked? Generally, unchecked. If I check it, then exit, next time it comes up checked, and the DROs are counting as soon as the window comes up.
>  
> #11 what is the color of the DROs after clicking and while "counting" - Green if I have run Init, otherwise Yellow.
>  
> #12 what if you don't have the USB connected? Isn't this the same as #7?
>  
> Regards
> TK
>  
>
>
> ________________________________
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, November 15, 2011 12:42 PM
> Subject: [DynoMotion] What Is KMotionCNC Doing?
>
>
>  
> KMotionCNC has take a giant step backwards. Here's what I've just done:
>
> Uninstalled KMotion
> Deleted the KMotion Directory
> Re-installed KMotion (I've tried both 426 and 428x with the same results)
> Fire up KMotion and re-flash
> Fire up KMotionCNC and do nothing more than click the "Simulate" checkbox - ALL the DROS start counting up!
>
> The exact same thing happens when I connect the machine, and run my Init program. This problem did not exist a few days ago, but I have done everything I can to wipe all vestiges of previous installs off the machine, to no avail. It's not my Init code, because I never loaded it. It's not my machine, because it doesn't even need to be connected. Besides, it works fine under Mach3 with all the same hardware, and the other two motion controllers I have on-hand.
>
> I now have the KFlop working pretty well with Mach3, except for a few minor issues I'm fairly sure will be easily resolved. Among them is my probing macros for the A axis do not work properly, though the same code works fine on the other three axes. On the A axis, simple G31s seem to always work properly, but when I use my probing macros (which have worked perfectly for dozens of people for years), the axis sometimes moves too far, sometimes even in the wrong direction, on some of the non-probing moves. I'm suspecting some confusion about coordinate systems, zeroes, or something similar, since the other axes work perfectly. I'm not too concerned, as that is easy enough to debug.
>
> Regards,
> Ray L.
>
Group: DynoMotion Message: 2258 From: Tom Kerekes Date: 11/15/2011
Subject: Re: What Is KMotionCNC Doing?
Hi Ray,
 
This might be a joystick issue on your computer.
 
Do you have a Gamepad installed?  If so, unplug it and see if the problem goes away.
 
Or I put a KMotionCNC version with the Gamepad jogging removed here:
 
 
Copy to the Version 4.28x Release directory and see if the problem goes away.
 
TK
 
 
 
 


Group: DynoMotion Message: 2259 From: himykabibble Date: 11/15/2011
Subject: Re: What Is KMotionCNC Doing?
Tom,

No joysticks or gamepads on that machine...

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>  
> This might be a joystick issue on your computer.
>  
> Do you have a Gamepad installed?  If so, unplug it and see if the problem goes away.
>  
> Or I put a KMotionCNC version with the Gamepad jogging removed here:
>  
> http://dynomotion.com/Software/Test/KMotionCNCNoJoy.exe
>  
> Copy to the Version 4.28x Release directory and see if the problem goes away.
>  
> TK
>  
>  
>  
>  
>
Group: DynoMotion Message: 2261 From: Tom Kerekes Date: 11/15/2011
Subject: Re: What Is KMotionCNC Doing?
Ray,
 
Did you try the modified code?
 
TK
 
Group: DynoMotion Message: 2263 From: himykabibble Date: 11/15/2011
Subject: Re: What Is KMotionCNC Doing?
Tom,

Can't try it until morning - not in the shop now.

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Ray,
>  
> Did you try the modified code?
>  
> TK
>  
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, November 15, 2011 6:14 PM
> Subject: [DynoMotion] Re: What Is KMotionCNC Doing?
>
>
>  
> Tom,
>
> No joysticks or gamepads on that machine...
>
> Regards,
> Ray L.
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Ray,
> >  
> > This might be a joystick issue on your computer.
> >  
> > Do you have a Gamepad installed?  If so, unplug it and see if the problem goes away.
> >  
> > Or I put a KMotionCNC version with the Gamepad jogging removed here:
> >  
> > http://dynomotion.com/Software/Test/KMotionCNCNoJoy.exe
> >  
> > Copy to the Version 4.28x Release directory and see if the problem goes away.
> >  
> > TK
> >  
> >  
> >  
> >  
> >
>
Group: DynoMotion Message: 2274 From: himykabibble Date: 11/16/2011
Subject: Re: What Is KMotionCNC Doing?
Tom,

Yes, this version fixes that problem. But I now see another odd thing - the jog buttons (slow and fast jog) only work on every other key press or mouse click, and move a short distance, then stop. The incremental jog buttons all work fine.

I tried disabling the Game Port device through device manager, and running the v428x KMotionCNC, but it still does the runaway.

The good news is that my home function, and limit handling kludge work properly under both Mach3 and KMotionCNC, so at least under Mach3 I now seem to have a fully functional system (except for the pendant MPG).

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>  
> This might be a joystick issue on your computer.
>  
> Do you have a Gamepad installed?  If so, unplug it and see if the problem goes away.
>  
> Or I put a KMotionCNC version with the Gamepad jogging removed here:
>  
> http://dynomotion.com/Software/Test/KMotionCNCNoJoy.exe
>  
> Copy to the Version 4.28x Release directory and see if the problem goes away.
>  
> TK
>  
>  
>  
>  
>
Group: DynoMotion Message: 2275 From: himykabibble Date: 11/16/2011
Subject: Re: What Is KMotionCNC Doing?
Tom,

Yes, this version fixes that problem. But I now see another odd thing - the jog buttons (slow and fast jog) only work on every other key press or mouse click, and move a short distance, then stop. The incremental jog buttons all work fine.

I tried disabling the Game Port device through device manager, and running the v428x KMotionCNC, but it still does the runaway.

The good news is that my home function, and limit handling kludge work properly under both Mach3 and KMotionCNC, so at least under Mach3 I now seem to have a fully functional system (except for the pendant MPG).

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>  
> This might be a joystick issue on your computer.
>  
> Do you have a Gamepad installed?  If so, unplug it and see if the problem goes away.
>  
> Or I put a KMotionCNC version with the Gamepad jogging removed here:
>  
> http://dynomotion.com/Software/Test/KMotionCNCNoJoy.exe
>  
> Copy to the Version 4.28x Release directory and see if the problem goes away.
>  
> TK
>  
>  
>  
>  
>
Group: DynoMotion Message: 2278 From: Tom Kerekes Date: 11/16/2011
Subject: Re: What Is KMotionCNC Doing?
Hi Ray,
 
That wasn't really meant as a fix.  I just wanted to prove it was an issue with your Windows System indicating a Joystick was present and pushed.
 
We use a classic Windows call to detect the Joystick/Gampad.  Normally it works great you just plug in a Gampad and it works.  Nothing to enable or configure.
 
MMRESULT result = joyGetPosEx(JOYSTICKID1,&ji);
 
So your system does in fact report a GamePort device is present?  What is it?  What OS are you running?
 
I thought you said you didn't have this problem on this computer originally.  Did you load something since then?
 
Regards
TK
 

Group: DynoMotion Message: 2279 From: himykabibble Date: 11/16/2011
Subject: Re: What Is KMotionCNC Doing?
Tom,

The machine is a pretty generic HP 2.8GHz desktop machine, about 3 years old, and the OS is XP-Pro SP2. There are no physical game port connectors I can see anywhere on or in the machine, but DeviceManager does report a Game Port under HID Devices, so it must be finding one in the MB chipset that isn't actually brought out on this MB.

But, here is something to think about: I can disable, or even un-install, the driver for that HID device, and KM behaves exactly the same. How is KM "reading" a device that isn't even there, and for which there is no driver loaded? I can also enable the Mach3 joystick plug-in, with the HID device installed and enabled, and nothing unusual happens. If I disable or un-install the HID device, then when Mach3 starts up, it correctly complains that there is no joystick I/F present, and refuses to enable the plug-in. So, Mach3 seems to correctly detect the presence or absence of the I/F, and when it is present and enabled, it does not interpret the joystick as telling it to "jog all axes". KM should be able to do the same, no?

I'm also confused about how a single 2-axis joystick I/F could command (at least) four axes to jog, and in different directions at that (two axes are running +, while the other two are running -)?

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>  
> That wasn't really meant as a fix.  I just wanted to prove it was an issue with your Windows System indicating a Joystick was present and pushed.
>  
> We use a classic Windows call to detect the Joystick/Gampad.  Normally it works great you just plug in a Gampad and it works.  Nothing to enable or configure.
>  MMRESULT result = joyGetPosEx(JOYSTICKID1,&ji);
> So your system does in fact report a GamePort device is present?  What is it?  What OS are you running?
>  
> I thought you said you didn't have this problem on this computer originally.  Did you load something since then?
>  
> Regards
> TK
>
>
> ________________________________
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, November 16, 2011 10:16 AM
> Subject: [DynoMotion] Re: What Is KMotionCNC Doing?
>
>
>  
> Tom,
>
> Yes, this version fixes that problem. But I now see another odd thing - the jog buttons (slow and fast jog) only work on every other key press or mouse click, and move a short distance, then stop. The incremental jog buttons all work fine.
>
> I tried disabling the Game Port device through device manager, and running the v428x KMotionCNC, but it still does the runaway.
>
> The good news is that my home function, and limit handling kludge work properly under both Mach3 and KMotionCNC, so at least under Mach3 I now seem to have a fully functional system (except for the pendant MPG).
>
> Regards,
> Ray L.
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Ray,
> >  
> > This might be a joystick issue on your computer.
> >  
> > Do you have a Gamepad installed?  If so, unplug it and see if the problem goes away.
> >  
> > Or I put a KMotionCNC version with the Gamepad jogging removed here:
> >  
> > http://dynomotion.com/Software/Test/KMotionCNCNoJoy.exe
> >  
> > Copy to the Version 4.28x Release directory and see if the problem goes away.
> >  
> > TK
> >  
> >  
> >  
> >  
> >
>